package com.yss.kettle.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.EasyExcel;
import com.yss.common.core.utils.easyexecl.IntegerConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yss.common.core.web.domain.BaseEntity;

/**
 * 采集任务信息对象 kettle_job_duties
 *
 * @author yss
 * @date 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("kettle_job_duties" )
public class JobDuties extends BaseEntity {

    /**
     * 主键
     */
    @ExcelIgnore
    @TableId("ID" )
    private String id;

    /**
     * 任务名称
     */
    @ExcelProperty(value = "任务名称" )
    @TableField("DUTIES_NAME" )
    private String dutiesName;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = IntegerConverter.class)
    @EasyExcel(readConverterExp = "1=正常,2=停用")
    @TableField("STATUS" )
    private Integer status;

    /**
     * 顺序
     */
    @ExcelProperty(value = "顺序" )
    @TableField("ORDER_NUM" )
    private Integer orderNum;

}
